import request from '@/utils/request'

// 查询招标项目列表
export function listBind(query) {
  return request({
    url: '/purs/bind/list',
    method: 'get',
    params: query
  })
}

// 查询招标项目列表最新四条数据
export function listNewBest(query) {
  return request({
    url: '/purs/bind/listNewBest',
    method: 'get',
    params: query
  })
}

// 查询招标项目详细
export function getBind(bindCode) {
  return request({
    url: '/purs/bind/' + bindCode,
    method: 'get'
  })
}

// 新增招标项目
export function addBind(data) {
  return request({
    url: '/purs/bind',
    method: 'post',
    data: data
  })
}

// 修改招标项目
export function updateBind(data) {
  return request({
    url: '/purs/bind',
    method: 'put',
    data: data
  })
}

// 删除招标项目
export function delBind(bindCode) {
  return request({
    url: '/purs/bind/' + bindCode,
    method: 'delete'
  })
}
